import request from '@/utils/request'
//  获取商品标签列表
export function getContentList(params) {
  return request({
    url: '/cloudApi/goods/goodsTag/getTagListAll',
    method: 'get',
    params
  })
}

//  获取商品标签列表
export function saveContent(data) {
  return request({
    url: '/cloudApi/goods/goodsTag/saveTag',
    method: 'post',
    data
  })
}
//  删除商品标签
export function removeContent(data) {
  return request({
    url: '/cloudApi/goods/goodsTag/removeTag',
    method: 'post',
    data
  })
}
// 文件上传
//  删除商品标签
export function uploadFile(data) {
  return request({
    url: '/cloudApi/datacenter/file/uploadFile',
    method: 'post',
    data
  })
}
//  获取商品标签列表分页
export function getContentListfy(params) {
  return request({
    url: '/cloudApi/goods/goodsTag/getTagList',
    method: 'get',
    params
  })
}
// export const uploadFile = data => {
//   return request.post('/cloudApi/datacenter/file/uploadFile', data)
// }
